package com.pricl.frame.core.dao.mybatis;

import java.io.Serializable;
import java.util.List;

import org.apache.ibatis.session.RowBounds;

import com.pricl.frame.query.criteria.BaseCriteria;

public interface MyBatisMapperDao<Entity, Criteria extends BaseCriteria, PK extends Serializable> extends Serializable {

	public Integer insert(Entity paramEntity);

	public Entity selectByPrimaryKey(PK id);

	public List<Entity> selectByEntityWithRowbounds(Criteria paramCriteria, RowBounds paramRowBounds);

	public List<Entity> selectByEntity(Criteria paramCriteria);

	public int countByEntity(Criteria paramCriteria);

	public int deleteByPrimaryKey(PK id);

	public int updateByPrimaryKey(Entity paramEntity);
	

}
